#pragma once

#include <d3d9.h>

#pragma comment(lib, "d3d9.lib")
#pragma comment(lib, "d3dx9.lib")

#include <wrl.h>
namespace wrl = Microsoft::WRL;

#include <sstream>

class Graphic {
public:
    Graphic(INT width, INT height, HWND hWnd);

    VOID BeginFrame(DWORD r, DWORD g, DWORD b);
    VOID EndFrame();

    IDirect3DDevice9* Device();
private:

    wrl::ComPtr<IDirect3D9> _D3D;
    wrl::ComPtr<IDirect3DDevice9> _Device;
};

